namespace ITU.EtermCore
{
    using System;
    using System.Net.Sockets;

    public class ErrorServerEventArgs : EventArgs
    {
        private readonly Exception error;
        private readonly Socket serverSocket;

        public ErrorServerEventArgs(Exception Error, Socket ServerSocket)
        {
            this.error = Error;
            this.serverSocket = ServerSocket;
        }

        public Exception Error
        {
            get
            {
                return this.error;
            }
        }

        public Socket ServerSocket
        {
            get
            {
                return this.serverSocket;
            }
        }
    }
}
